<?php

require BENCH_DIR."/smarty/Smarty.class.php";

class SmartyBench extends Smarty {

	public function __construct() {
		parent::Smarty();
		$this->template_dir = BENCH_DIR."/templates";
		$this->compile_dir = BENCH_DIR."/tmp";
		$this->plugins_dir[] = BENCH_DIR."/smarty/extends";
		$this->compile_check = true;
		$this->force_compile = false;
	}
	
	public function displayPage($tpl = "bench.tpl") {
		$this->display("header.tpl");
		$this->display($tpl);
		$this->display("footer.tpl");
		die();
	}
}

return new SmartyBench();
?>
